package com.smartcommunity.dao.access;


import com.smartcommunity.entity.ac.AccessDevice;
import com.smartcommunity.entity.village.SixStatisticsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface AccessDeviceDao {
    /**
     * 获取门禁设备的数量
     *
     * @param recordMap
     * @return
     */
    int getAccessDeviceCount(Map<String, Object> recordMap);

    List<SixStatisticsEntity> accessDeviceCountGroupByVillage();

    AccessDevice getAccessDevice(String id);

    List<AccessDevice> getAccessDeviceByIds(@Param("ids") List<String>  ids);

    Integer getAllAccessDeviceCount();

    List<AccessDevice> getAccessDeviceByVillageCodes(@Param("codes") String  codes);
}
